package functions;
import main.ContingencyTable;


public class AllConfidenceFunction extends GeneralFunction {

	public AllConfidenceFunction(String name) {
		super(name);
	}

	@Override
	public double calculate(ContingencyTable t) {
		return Math.min(t.f11() / t.f1p(), t.f11() / t.fp1());
	}

}
